<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href="/fuman/css/style.default.css" type="text/css" />
<script type="text/javascript" src="/fuman/js/plugins/jquery-1.7.min.js"></script>
<script language="javascript">


function checkInfo4(e){
	var keyCode;
   if(window.event){
      keyCode=event.keyCode;
   }else{
      keyCode=e.which;
   }
    if(keyCode==13){
		   var numall = $("#numall").val();
	       $("#numall").attr("value",Number(numall)+1); 
		

	  var orderid=$("#orderid").val();
      if(orderid.length <= 0){
         alert('请输入订单编号');
         $("#orderid").focus();
         return false;
      }
		 $.post("/factory/ajaxbutton", {"op": "ActionbatchfactoryExpress", "orderid": orderid},
		function (data) {
			if(data.code == 201)
			{
				alert(data.txt);
				$("#orderweight").val('');
				$("#orderid").val('');
				$("#expressid").val('');
				$("#orderweight").focus();
				return false;	
			}
			if(data.code == 200)
			{

				$("#showorderdetail").html(data.txt);
				$("#memo").append(data.memo);
				$("#orderweight").val('');
				$("#orderid").val('');
				$("#expressid").val('');
				$("#orderweight").focus();
				return true;	
			}
			
			
		}, "json");
	  
	
	   
			  
	}
   
 }

</script>
<title>工厂扫单发货</title>
<body class="withvernav">
<div class="bodywrapper">

<!--pageheader-->
 <table cellpadding="0" cellspacing="0" border="0" class="stdtable">
    <thead>
      <tr>
        <th colspan="2" class="head1">工厂扫单发货</th>
      </tr>
    </thead>
  </table>
  <table border="0" width="100%" id="table19" class="stdtable" cellspacing="0" cellpadding="0">

   <tr>
      <td width="60%">
      <div id="contentwrapper" class="contentwrapper">
            <div id="basicform" class="subcontent">
                <form class="stdform stdform2" id="otherForm" method="post" enctype='multipart/form-data' action="/product/ajaxbutton?op=savenewproduct">

                    <p>
                        <label>当前扫货数 </label>
                            <span class="field">
                            <input id="numall" name="numall" value='0' style="font-size:40px; height:50px;width:120px" readonly/><font color="#FF0000"> 不分成功和失败</font></span>
                    </p>
                  
                    
                    <p>
                        <label> 工厂订单编号:</label>
                            <span class="field">
                         <input type="text" id="orderid" onFocus="this.select()" name="orderid" value="" size=6  onKeyPress="checkInfo4(event);" style="width:220px"><font color="#FF0000">(*)</font><br></span>
                    </p>
                  	
                 
                
                    <p>
                       <div id="showorderdetail" style="width:100%; height:430px; border: 1px solid #e3e3e3; background:#e3e3e3; font-size:30px; font-weight:900;line-height:40px;">
         </div>
                    </p>

                    <p class="stdformbutton">
                        	
                        <span class="btn_style10"><input name="save2" type="button" value="关闭" onClick="window.close();"/></span>
                    </p>
                </form>

                <br/>

            </div><!--subcontent-->

            <!--subcontent-->

        </div><!--contentwrapper-->
	</td>
   
   </tr>
</table>

</div>

  
  
  <!-- /.modal -->
</body>
</html>